Release 10.1A: OpenEdge Development:
Web Services


Creating and managing SOAP message headers

Depending on the requirements of the Web service, you can work with SOAP headers in several different ways. Three basic use cases that a Web service might require for handling SOAP headers in a client application include:

  1. Re-using a SOAP header that it has created for a response message that you must return unchanged in a subsequent request message.
  2. Re-using a SOAP header that it has created for a response message that you must return in a subsequent request message, but modified with additional or updated header entries.
  3. Building a unique SOAP header from scratch to provide as output from the request header handler.

As described previously (see the "SOAP header object model" section), the 4GL represents a SOAP message header as:

Depending on the situation, you might need to work only at the level of the SOAP header object with no need to inspect the contents, or you might need to access individual SOAP header entries and their individual XML elements.

Thus, the following sections describe examples of each of the three basic use cases presented in this section that you are most likely to encounter when managing SOAP headers as part of Web service access:

All of these examples are based on a fictitious Web service (HeaderExample), using code that has been run against a working version of the Web service. In the code examples, listed steps refer to the numbers in comments, such as /*2b*/ or /*9*/.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095